package org.sdp.pearproject.dto.convert;

import org.sdp.pearproject.dao.domain.*;
import org.sdp.pearproject.dto.request.*;
import java.util.Date;

/**
 * @ClassName: ProjectForNodeAuthBaseRequestConvert
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-26
 * @Version: 1.0
 * Table: pear_project
 * Comment:
 * 项目表
 */
public class ProjectForNodeAuthBaseRequestConvert extends BaseConvert {
    public static ProjectForNodeAuthBase convert(ProjectForNodeAuthBaseRequest request) throws Exception {
        ProjectForNodeAuthBase daoRequest = new ProjectForNodeAuthBase();
        copyProperties(request, daoRequest);

        daoRequest.setNode(daoRequest.getNode() == null ? null : daoRequest.getNode().trim());
        daoRequest.setMemberCode(daoRequest.getMemberCode() == null ? null : daoRequest.getMemberCode().trim());

        return daoRequest;
    }
}
